package com.lingxu.api.ztb.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 组织机构表
 * </p>
 *
 * @author admin
 * @since 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("API_SYS_DEPT")
@ApiModel(value="SysDept对象", description="组织机构表")
public class SysDept implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "名称")
    @TableField("SD_NAME")
    private String sdName;

    @ApiModelProperty(value = "代码")
    @TableField("SD_CODE")
    private String sdCode;

    @ApiModelProperty(value = "简称")
    @TableField("SD_SHORTNAME")
    private String sdShortname;

    @ApiModelProperty(value = "邮编")
    @TableField("SD_POST")
    private String sdPost;

    @ApiModelProperty(value = "联系电话")
    @TableField("SD_TEL")
    private String sdTel;

    @ApiModelProperty(value = "传真")
    @TableField("SD_FAX")
    private String sdFax;

    @ApiModelProperty(value = "地址")
    @TableField("SD_ADDRESS")
    private String sdAddress;

    @ApiModelProperty(value = "简介")
    @TableField("SD_DESC")
    private String sdDesc;

    @ApiModelProperty(value = "机构级别")
    @TableField("SD_LEVEL")
    private String sdLevel;

    @ApiModelProperty(value = "机构类型 01：内部机构；02：自定义机构；03：三方公司")
    @TableField("SD_TYPE")
    private String sdType;

    @ApiModelProperty(value = "归属组织机构")
    @TableField("THIRD_SD_ID")
    private String thirdSdId;

    @ApiModelProperty(value = "机构OU信息 用ID分割")
    @TableField("OU")
    private String ou;

    @ApiModelProperty(value = "组织机构类型 o：单位；ou：部门")
    @TableField("DEPT_TYPE")
    private String deptType;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "创建日期")
    @TableField("SD_CREATE_TIME")
    private Date sdCreateTime;

    @ApiModelProperty(value = "更新日期")
    @TableField("SD_UPDATE_TIME")
    private Date sdUpdateTime;

    @ApiModelProperty(value = "部门主键")
    @TableField("SD_ID")
    private String sdId;

    @ApiModelProperty(value = "上级业务机构ID")
    @TableField("SD_PID")
    private String sdPid;

    @ApiModelProperty(value = "排序")
    @TableField("SD_ORDER")
    private String sdOrder;

    @ApiModelProperty(value = "创建人")
    @TableField("SD_CREATE_BY")
    private String sdCreateBy;

    @ApiModelProperty(value = "更新人")
    @TableField("SD_UPDATE_BY")
    private String sdUpdateBy;

    @ApiModelProperty(value = "是否禁用(0启用1禁用)")
    @TableField("SD_IS_DISABLED")
    private String sdIsDisabled;

    @ApiModelProperty(value = "邮箱ID-部门对应的邮箱ID")
    @TableField("EXMAIL_ID")
    private String exmailId;

    @ApiModelProperty(value = "机构负责人")
    @TableField("HEAD_USER")
    private String headUser;


}
